<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        function fn() {
            console.log('这是一个函数');
        }
        fn();

        var fun1 = function () {
            console.log('这是匿名函数');
        }
        fun1();

        var fun2 = new Function('console.log("这是内置结构函数创建的函数")');
        fun2(); 
    </script>
</body>

</html>